package ru.myrtle.jst.ast;

/**
 * An AST element representing a comment.
 */
public class Comment extends Element {

    private final String comment;

    public Comment(Unit unit, int line, int column, String comment) {
        super(
                unit, line, column
        );
        this.comment = comment;
    }

    public String getComment() {
        return comment;
    }

    @Override
    public <ContextType> void accept(Visitor<ContextType> visitor, ContextType context) {
        visitor.visit(this, context);
    }
}
